﻿using System.ComponentModel;

namespace gt.webapi.core.Entity.Common
{
    public class ApiResponse<T>
    {
        public ApiResponse(T data)
            : this(0, string.Empty, data) { }
        public ApiResponse(int code, string msg)
            : this(code, msg, default(T)) { }
        public ApiResponse(int code, string msg, T data)
        {
            this.Code = code;
            this.Msg = msg;
            this.Data = data;
        }
        public int Code { get; set; }
        public string Msg { get; set; }
        public T Data { get; set; }
    }
}
